import { createStore } from "vuex";
const store = createStore({
  state: {
      userInfo: {
        username: "",
        password: "",
        isLogin: false,
		order:[]
      }
    },
    getters: {
    },
    mutations: {
      // 注销
      loginOut(state){
        state.userInfo={ username: "",password: "",isLogin: false,order:[] }
        uni.removeStorage(
		{
        	key: 'userInfo',
        	success: function (res) {
        		console.log('success');
        	}
        }
		);
      }
    },
    actions: {
    },
    modules: {
    }
});
export default store;
